<?php
$script="$('#s').live('keypress',function(e){if(e.which==13){ $.fn.yiiGridView.update('Choose_DO_Grid',{'data':'&s='+$(this).val()}); return false;}});";
$cs = Yii::app()->getClientScript();
$cs->registerScript('GridSearch',$script,CClientScript::POS_READY);
$search = CHtml::tag('div', array('class'=>'summary'),CHtml::label('Search', 'search')." ".CHtml::textField('s',''));
$this->widget('zii.widgets.grid.CGridView',array('dataProvider'=>$data,
        'columns'=>$columns,'template'=>$search.'{items}{pager}','selectableRows'=>2,'id'=>'Choose_DO_Grid'));
?>
